<div class="row">
	<div class="col-md-12">
		<div class="bid-result" style="border: 1px solid #ddd; padding: 10px; margin-bottom: -1px; border-top: none;">
			<#if ["B0003_WIN", "B0004_LOSE"]?seq_contains(data.status)>
			<b class="text-danger">[${data.status.value}]</b>
			&nbsp;
			<span>${data.lastResult.winCompany!'未知单位'}:</span>
			<b class="text-danger">${((data.lastResult.finalMoney?string('currency'))!(data.lastResult.finalMoneyDesc!'未知金额'))!'未知金额'}</b>
			<#else>
			<b class="text-danger">[${data.status.value}]</b>
			&nbsp;
			<b class="text-danger">无投标结果！</b>
			</#if>
		</div>
	</div>
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<td class="text-center">
					<b>投标单位</b>
				</td>
				<td colspan="5">${data.ownCompany!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>项目名称</b>
				</td>
				<td colspan="5">${data.name!'-'}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>投标编号</b>
				</td>
				<td>${data.projectNo!'-'}</td>
				<td class="text-center" width="115">
					<b>招标类型</b>
				</td>
				<td>${data.bidType!'-'}</td>
				<td class="text-center" width="115">
					<b>授权代理人</b>
				</td>
				<td>${data.executor!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>招标编号</b>
				</td>
				<td>${data.bidNo!'-'}</td>
				<td class="text-center">
					<b>报价方式</b>
				</td>
				<td>${data.quotationType!'-'}</td>
				<td class="text-center">
					<b>招标方式</b>
				</td>
				<td>${data.bidWay!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>报名时间</b>
				</td>
				<td class="openTime">${(data.signDate?string('yyyy-MM-dd'))!'-'}</td>
				<td class="text-center">
					<b>开标时间</b>
				</td>
				<td class="openTime" colspan="3">${(data.openingTime?string('yyyy-MM-dd HH:mm'))!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>招标范围</b>
				</td>
				<td colspan="5">${data.bidScope!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>备注</b>
				</td>
				<td colspan="5">${data.remark!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>招标单位</b>
				</td>
				<td colspan="5" class="biddinger-company">${data.biddingerInfo.biddinger.company!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>联系人</b>
				</td>
				<td>${data.biddingerInfo.contact!'-'}</td>
				<td class="text-center">
					<b>电话</b>
				</td>
				<td colspan="3">${data.biddingerInfo.phone!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>代理机构</b>
				</td>
				<td colspan="5">${data.bidAgencyInfo.agency.company!'-'}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>联系人</b>
				</td>
				<td>${data.bidAgencyInfo.contact!'-'}</td>
				<td class="text-center">
					<b>电话</b>
				</td>
				<td colspan="3">${data.bidAgencyInfo.phone!'-'}</td>
			</tr>
		</table>
	</div>
</div>
<div class="row bid-files">
	<!-- 招标文件 -->
	<#if data.serverFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[招标文件]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/0/${data.serverFile.id}" target="_blank"> ${data.serverFile.fileName}${data.serverFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.serverFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${data.serverFile.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-bid-file" data-id="${data.serverFile.id}" data-bid-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadServerFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[招标文件]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="F100_BID_SERVER_FILE" data-bid-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 投标文件 -->
	<#if data.doFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[投标文件]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/0/${data.doFile.id}" target="_blank"> ${data.doFile.fileName}${data.doFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.doFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${data.doFile.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-bid-file" data-id="${data.doFile.id}" data-bid-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadDoFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[投标文件]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="F101_BID_DO_FILE" data-bid-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 中标通知书 -->
	<#if data.noticeFile??>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[中标通知书]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/0/${data.noticeFile.id}" target="_blank"> ${data.noticeFile.fileName}${data.noticeFile.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${data.noticeFile.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${data.noticeFile.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-bid-file" data-id="${data.noticeFile.id}" data-bid-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	<#elseif roles.canUploadNoticeFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[中标通知书]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="F103_BID_NOTICE_FILE" data-bid-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if>

	<!-- 其他文件 -->
	<#if data.otherFiles??> 
	<#list data.otherFiles as f>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[${f.type.value}]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/viewer/0/${f.id}" target="_blank"> ${f.fileName}${f.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${f.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>[${f.fileSizeString}]</small>
					</div>
				</td>
				<#if roles.canRemoveFile>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-bid-file" data-id="${f.id}" data-bid-id="${data.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	</#list>
	<#elseif roles.canUploadOtherFile>
	<div class="col-md-6 file-item" style="height: 82px;">
		<table style="margin: 15px 0; width: 100%;">
			<tr height="50">
				<td class="text-center" width="75">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[附件资料]</small>
					</b>
				</td>
				<td class="text-center common-file-upload" data-file-type="Z900_OTHER" data-bid-id="${data.id}" style="border: 1px dashed #929292; color: #929292; font-size: 20px; cursor: pointer;">
					<i class="icon-upload icon-large"></i>
					添加
				</td>
			</tr>
		</table>
	</div>
	</#if> 
</div>
